package com.xc.common.object;

import java.util.List;

public class TreeObject {
	private String id;
	private Object pid;
	private String code;
	private String title;
	private String name;
	private Integer type;
	private boolean isParent;
	private boolean checked;
	private boolean nocheck;
	private boolean open;
	private List<TreeObject> children;

	public TreeObject() {
	}

	public TreeObject(String name) {
		this.name = name;
	}

	public TreeObject(String id, Object pid, String name) {
		this(name);
		this.id = id;
		this.pid = pid;
	}

	public TreeObject(String id, Object pid, String name, String code) {
		this(id, pid, name);
		this.code = code;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Object getPid() {
		return this.pid;
	}

	public void setPid(Object pid) {
		this.pid = pid;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public boolean getIsParent() {
		return this.isParent;
	}

	public void setIsParent(boolean isParent) {
		this.isParent = isParent;
	}

	public boolean isChecked() {
		return this.checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean isNocheck() {
		return nocheck;
	}

	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}

	public boolean isOpen() {
		return this.open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public List<TreeObject> getChildren() {
		return this.children;
	}

	public void setChildren(List<TreeObject> children) {
		this.children = children;
	}
}
